/* 首页样式 */
.summary-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: var(--shadow-medium);
}

.summary-title {
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* 页面头部样式 - 统一设计 */
.page-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-main {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.header-decoration {
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.decoration-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
    backdrop-filter: blur(10px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 功能菜单副标题样式 */
.menu-section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    opacity: 0.8;
}

/* 用户信息卡片样式 */
.user-info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
}

.user-info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.user-avatar {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    border-radius: 50%;
    border: 2px solid rgba(46, 204, 113, 0.2);
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.2;
}

.user-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.welcome-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.3px;
}

.welcome-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 两行两列网格布局 */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: 0;
    width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--card-background-hover);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.menu-item-content {
    flex: 1;
    min-width: 0;
}

.menu-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.3px;
}

.menu-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.menu-item-arrow {
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    margin-left: var(--spacing-sm);
}

.menu-item:hover .menu-item-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* 菜单卡片链接样式 */
.menu-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.menu-card-link:hover {
    transform: translateY(-2px);
}

/* 菜单卡片样式 */
.menu-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 140px;
}

.menu-card-link:hover .menu-card {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card-link:hover .menu-card::before {
    opacity: 1;
}

/* 菜单卡片图标 */
.menu-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
    border: 2px solid rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
}

.menu-card-link:hover .menu-card-icon {
    transform: scale(1.1);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
}

/* 菜单卡片内容容器 */
.menu-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

/* 菜单卡片标题 */
.menu-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

/* 菜单卡片副标题 */
.menu-card-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    line-height: 1.3;
    opacity: 0.8;
}


/* 响应式设计 */
@media (max-width: 480px) {
    .menu-grid {
        gap: var(--spacing-sm);
        padding: 0;
    }
    
    .menu-card {
        height: 120px;
        padding: var(--spacing-md);
    }
    
    .menu-card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: var(--spacing-sm);
    }
    
    .menu-card-title {
        font-size: 14px;
    }
    
    .menu-card-subtitle {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .menu-grid {
        max-width: 500px;
        margin: 0 auto var(--spacing-xl);
    }
}

/* 植物迷你项 */
.plant-mini-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
}

.plant-mini-item:hover {
    background-color: rgba(248, 249, 250, 1);
}

.plant-mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(46, 204, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.plant-mini-info {
    flex: 1;
    min-width: 0;
}

.plant-mini-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plant-mini-stats {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 日志日期分组 */
.log-date-group {
    margin-bottom: var(--spacing-sm);
}

.log-date-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-sm);
    position: relative;
}

.log-date-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 日志迷你项 */
.log-mini-item {
    padding: var(--spacing-sm);
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-xs);
    transition: all 0.2s ease;
}

.log-mini-item:hover {
    background-color: rgba(248, 249, 250, 1);
}

.log-mini-plant {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.log-mini-content {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 提醒迷你项 */
.reminder-mini-item {
    padding: var(--spacing-sm);
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-xs);
    transition: all 0.2s ease;
    position: relative;
    padding-left: 28px;
}

.reminder-mini-item:hover {
    background-color: rgba(248, 249, 250, 1);
}

.reminder-mini-item::before {
    content: '⏰';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.reminder-mini-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.reminder-mini-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 种植提示项 */
.plant-tip-item {
    padding: var(--spacing-sm);
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius-md);
    position: relative;
    padding-left: 32px;
    transition: all 0.2s ease;
}

.plant-tip-item:hover {
    background-color: rgba(248, 249, 250, 1);
}

.plant-tip-item::before {
    content: '💡';
    position: absolute;
    left: 8px;
    top: 10px;
    font-size: 16px;
}

.plant-tip-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 按钮样式增强 */
.view-all-btn,
.add-log-btn,
.more-tips-btn {
    margin-top: var(--spacing-sm);
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.view-all-btn:hover,
.add-log-btn:hover,
.more-tips-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

/* 每日推荐模块 - 移动端优化 */
.daily-tips-section {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    margin-bottom: 80px; /* 为底部导航留出空间 */
    position: relative;
    overflow: hidden;
}

.daily-tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
}

.daily-tips-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    letter-spacing: -0.3px;
    position: relative;
}

.daily-tips-title::before {
    content: '🌿';
    font-size: 20px;
    margin-right: var(--spacing-sm);
    filter: drop-shadow(0 2px 4px rgba(46, 204, 113, 0.3));
}

.daily-tips-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.daily-tip-item {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 0.8));
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 48px;
    border: 1px solid rgba(46, 204, 113, 0.1);
}

.daily-tip-item:hover {
    background: linear-gradient(135deg, rgba(248, 249, 250, 1), rgba(255, 255, 255, 0.9));
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border-color: rgba(46, 204, 113, 0.2);
}

.daily-tip-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

.daily-tip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.2px;
}

.daily-tip-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* 蔬菜库预览样式 */
.library-preview {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.preview-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.preview-item:hover {
    background-color: rgba(248, 249, 250, 1);
    color: var(--text-primary);
}

/* 卡片组件的特殊图标背景色 */
#vegetable-library-card .menu-card-icon {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    border-color: rgba(46, 204, 113, 0.3);
}

#my-garden-card .menu-card-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    border-color: rgba(52, 152, 219, 0.3);
}

#plant-logs-card .menu-card-icon {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.1));
    border-color: rgba(243, 156, 18, 0.3);
}

#reminders-card .menu-card-icon {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.1));
    border-color: rgba(155, 89, 182, 0.3);
}


/* 加载动画保持简洁 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}